package net.huashitong.ssydt.provider.task.service;


import net.huashitong.ssydt.base.service.LongService;
import net.huashitong.ssydt.task.entity.SsTaskCardRecord;

import java.util.List;

/**
 * @author <a href="mailto:yhy23456@163.com">huiyang.yu</a>
 * @since 2018.01.10
 */
public interface SsTaskCardRecordService extends LongService<SsTaskCardRecord> {

    int countByYearMonthsWithUserId(String yearMonths, String userId);

    SsTaskCardRecord getByCardIdWihUserId(Long cardId, String userId);

    Integer countByUserIdWithReadState(String userId, byte readState);

    int updateReadStateToRead(String userId);

    List<SsTaskCardRecord> findCardRecordByUserId(String userId);
}
